package bash
import (


	"github.com/astaxie/beego/session"
	"github.com/astaxie/beego/logs"
)

var globalSessions *session.Manager
func init() {
	
	logs.Info("开始执行sseion程序初始化")
	conf_logs()
	logs.Info("sseion程序初始化完成")
}



func session_init() {
	sessionConfig := &session.ManagerConfig{
		CookieName:"gosessionid", 
		EnableSetCookie: true, 
		Gclifetime:3600,
		Maxlifetime: 3600, 
		Secure: false,
		CookieLifeTime: 3600,
		ProviderConfig: "./tmp",
	}
    globalSessions, _ = session.NewManager("memory",sessionConfig)
    go globalSessions.GC()
}